const mongoose  = require('mongoose');
const Schema = mongoose.Schema;
//Create Schema
const UserSchema = new Schema({
    name: {
        type: String,
    },
    email: {
        type: String,
    },
    password: {
        type: String,
    },
    avatar: {
        type: String,
    },
    identity: {
        type: String,
    },
    date: {
        type: Date,
        default: Date.now
    }
})
module.exports = User = mongoose.model("users", UserSchema)